<?php
/* SVN FILE: $Id: group.php 11 2007-09-05 23:30:54Z joe.vasquez $ */
/**
 * group model
 * @filesource
 * @author			Joe Vasquez <joe.vasquez@gmail.com>
 * @copyright		Copyright (c) 2007, Joe Vasquez
 * @package			redlettr
 * @subpackage		groups
 * @since			0.1A
 * @version			0.1A  $Rev: 11 $
 * @lastmodified	$Date: 2007-09-05 23:30:54 +0000 (Wed, 05 Sep 2007) $
 * @license			http://www.gnu.org/licenses/gpl.html GNU General Public License
 */
 
class Group extends AppModel {

	var $name = 'Group';
	var $validate = array(
		'name' => '/[a-z 0-9\-_]{3,255}/i',
		'parent' => VALID_NUMBER,
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $hasAndBelongsToMany = array(
			'User' => array('className' => 'User',
						'joinTable' => 'groups_users',
						'foreignKey' => 'group_id',
						'associationForeignKey' => 'user_id',
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'limit' => '',
						'offset' => '',
						'unique' => '',
						'finderQuery' => '',
						'deleteQuery' => '',
						'insertQuery' => ''),
	);

}
?>